package com.test.login_lejingling_cjl.mapper;

import com.test.login_lejingling_cjl.dto.loginDTO;
import com.test.login_lejingling_cjl.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author 11818
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-11-12 20:49:51
* @Entity com.test.login_lejingling_cjl.entity.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT * FROM user WHERE phone = #{loginDTO.phone} AND password = #{loginDTO.password}")
    User findUser(@Param("loginDTO")loginDTO loginDTO);
}




